package com.zghl.service.impl;

import com.zghl.dao.AreaDao;
import com.zghl.pojo.Area;
import com.zghl.pojo.vo.AreaVo;
import com.zghl.service.AreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author:wangbosen
 * @Date:2020/7/28 9:08
 * Description
 */
@Service
public class AreaServiceImpl implements AreaService {

    @Resource
    private AreaDao areaDao;

    @Override
    public List<AreaVo> areaList(Map<String, Object> param) {
        List<AreaVo> areaVos = areaDao.areaList(param);
        return areaVos;
    }

    @Override
    public List<Area> List(Map<String, Object> param) {
        return  areaDao.List(param);
    }

    @Override
    public Integer addByArea(Area area) {
        Integer integer = areaDao.addByArea(area);
        return integer;
    }

    @Override
    public Integer deleteByArea(int Id) {
        Integer integer = areaDao.deleteByArea(Id);
        return integer;
    }

    @Override
    public Integer updateByArea(Area area) {
        Integer integer = areaDao.updateByArea(area);
        return integer;
    }
}
